package sortTest;

public class RecursionDemo2 {
    public static void main(String[] args) {
        //递归 : 自己调用自己
        System.out.println(getFactorialRecursion(3));


    }

    public static int getFactorialRecursion(int number) {
        if (number == 1) {
            return 1;
        }
        return number * getFactorialRecursion(number - 1);
    }
}
